//package com.plian.system.task.system;
//
//import com.plian.system.service.sys.warning.IWarningFactorValueService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.scheduling.annotation.Scheduled;
//
//import javax.annotation.Resource;
//import java.util.Calendar;
//
//@Slf4j
//@Configuration
//public class WarningTask {
//
//    @Resource
//    private IWarningFactorValueService warningFactorValueService;
//
//    @Scheduled(cron = "0 30 1 * * ?")
//    private void factorValueTask() {
//        log.info("WarningTask---factorValueTask--->start");
//        Calendar calendar = Calendar.getInstance();
//        int nowYear = calendar.get(Calendar.YEAR);
//        warningFactorValueService.updateValueByYear(nowYear);
//        log.info("WarningTask---factorValueTask--->end");
//    }
//}
